<?php

abstract class utilDesAbstract
{
    protected static $instance = array();
    protected static $call_class = '';
    protected $encrypt_key = '';
    protected $encrypt_type = '';
    protected $encrypt_mode = '';

    public static function getInstance($encrypt_key)
    {
        if (empty(self::$instance[self::$call_class])) {
            self::$instance[self::$call_class] = new self::$call_class($encrypt_key);
        }

        return self::$instance[self::$call_class];
    }
}
